package com.xindaoapp.happypet.utils;


/**
 * 常量
 * 
 * @author chenghao
 */
public final class Constants {


    public static Object appSecret = "";

    /** 尾巴圈APIURL */
    public static final String URL = "http://bbs.chinapet.com/plugin.php?id=leepet_thread:api&";
    public static final String ENCONDING = "utf-8";
    /** 视频地址 */
    public static final String PARAM_VIDEO_PATH = "video_path";
    /** 封面地址 */
    public static final String PARAM_COVER_PATH = "cover_path";
    /** 图片列表传递 */
    public static final String PARAM_PHOTO_LIST = "photo_list";
    /** 图片列表Position */
    public static final String PARAM_PHOTO_POSITION = "photo_position";
    /** 发帖成功之后的广播action */
    public static final String ACTION_POST_SUCCESS = "action_post_success";
    /** 发帖图片数量上限 */
    public static final int PUBLISHPOSTS_COUNTS = 6;
    /** 每页加载的数量 */
    public static final int PAGE_SIZE = 10;
    /** 发帖图片数量上限 */
    public static final int PAGE_FIRST = 1;

    public static final String APPID = "10021591";
    public static final String QQAPPKEY = "ush2UkhLR4vh3Qqk";

    /** 分享站内好友的 内容 */
    public static final String SHARECONTENT = "sharecontent";

    /**
     * 发帖类型
     * 
     * @author chenghao
     */
    public static final class PUBLISHPOSTS {
        /** 视频 */
        public static final int VIDEO = 1;
        /** 照相机 */
        public static final int CAMERA = 2;
        /** 从相册选择 */
        public static final int PHOTOALBUM = 3;
        /** 图片修改 */
        public static final int PHOTO_AMEND = 4;

        // final int REQUEST_PICK_PHOTO = 1;
        // final int REQUEST_CAMERA = 2;
        /** 选择视频 */
        public static final int REQUEST_PICK_VIDEO = 5;
        public static final int REQUEST_QUOTE_POST = 6;
        public static final int REQUEST_QUOTE_FRIEND = 7;
        public static final int REQUEST_APPLY = 8;
        public static final int REQUEST_ADDPET = 9;
    }

    /** 回复成功之后的广播action */
    public static final String ACTION_REPLAY_SUCCESS = "action_replay_success";

    /** 取消收藏action */
    public static final String ACTION_CANCEL_COLLECT = "action_cancel_collect";

    /** 登录成功 */
    public static final String ACTION_LOGIN_STATE_CHANGED = "action_login_success";
    /**
     * 首页刷新-广播
     */
    public static final String ACTION_REFRESH_FRIEND = "action_fresh_friend";
    public static final String ACTION_REFRESH_MEITU = "action_fresh_meitu";
    /**
     * 首页-红点 是否有新数据
     */
    public static final String ACTION_HASNEW = "action_hasnew";

    /** 商城收藏action */
    public static final String SHOP_COLLECT = "action_shop_success";

    /** 订单详情中所有广播的action */
    public static final String ORDER_DETAIL = "action_order_detail_success";

    /** 他人中心中的滑动监听 */
    public static final String SCROLL_FOR = "action_scroll_for";

    /** 去结算的广播action */
    public static final String DELETE_CART = "action_delete_cart_success";
    /** 收货人 */
    public static final String KEY_CONSIGNEE = "key_consignee";

    /** 是否只展示商品 */
    public static final String KEY_ONLY_SHOW_PRODUCT = "key_consignee";
    public static final String KEY_PRODUCT_PRICE = "key_product_price";
    public static final String KEY_SHOPPING_CART_LIST = "key_shopping_cat_list";
    public static final String KEY_SHOPPING_CART_WEIGHT = "key_shopping_cat_weight";
    public static final String KEY_RECID = "key_recid";
    public static final String KEY_ORDER_NUMBER = "key_order_number";
    public static final String KEY_ORDER_TITLE = "key_order_title";
    public static final String KEY_ORDER_TOTAL_PRICE = "key_order_total_price";
    public static final String KEY_SKIP_CLASS_NAME = "key_skip_class_name";
    public static final String KEY_SKIP_TAB_INDEX = "key_skip_tab_index";
    public static final String KEY_IS_BACK = "key_is_back";
    public static final String KEY_BUNDLE = "key_bundle";
    public static final String KEY_AUDIO_SETTING = "key_audio_setting";
    // public static final String KEY_POST_PROGRESS = "key_post_progress";
    /** 正在上传文件地址 */
    public static final String KEY_UPLOAD_FLIE_PATH = "key_upload_file_path";
    public static final String KEY_UPLOAD_FLIE_COUNT = "key_upload_file_count";
    public static final String KEY_UPLOAD_FLIE_CURRENT_COUNT = "key_upload_file_current_count";
    /** 上传进度 */
    public static final String KEY_UPLOAD_PROGRESS = "key_upload_progress";
    public static final String KEY_UPLOAD_START = "key_upload_start";
    /** 发帖失败 */
    public static final String KEY_UPLOAD_ERROR = "key_upload_error";
    public static final String KEY_UPLOAD_TIME = "key_upload_time";
    /** 发帖成功 */
    public static final String KEY_UPLOAD_SUCCESS = "key_upload_success";
    // public static final String KEY_UPLOAD_PROGRESS =
    // "action_upload_progress";
    public static final String KEY_UPLOAD_TYPE = "key_upload_type";
    public static final String KEY_SEND_POST_SUCCESS = "cn.abel.action.broadcast";

    /** 图片列表 */
    public static final String KEY_PHOTOS_SELECTED = "key_photos_selected";
    public static final String KEY_PHOTOS = "key_photos";
    public static final String KEY_CURRENT_INDEX = "key_current_index";

    /** 圈子名字 */
    public static final String KEY_GROUP_NAME = "key_group_name";
    /** 圈子人数 */
    public static final String KEY_GROUP_MEMBER = "key_group_member";
    /** 圈子图标 */
    public static final String KEY_GROUP_ICON = "key_group_icon";
    /** 圈子fid，如420 */
    public static final String KEY_GROUP_FID = "key_group_fid";
    /**
     * 标签id
     */
    public static final String KEY_TAGID = "key_tagid";


    /**
     * 点击之后返回
     */
    public static final String KEY_IS_CLICK_TO_BACK = "key_is_click_to_back";

    public static final String KEY_TOUID = "key_touid";
    public static final String KEY_USERNAME = "key_username";

    public static final String KEY_POST_NAME = "key_post_name";
    public static final String KEY_POST_COVER = "key_post_cover";
    public static final String KEY_POST_TID = "key_post_tid";
    /** 跳转到帖子详情的位置来源 默认false，调到对应的帖子频道。true：来源对应的帖子频道，直接finish返回 */
    public static final String KEY_POST_FROM_POSTLIST = "key_post_from_postlist";

    public static final String KEY_FANS_USERNAME = "key_fans_username";
    public static final String KEY_FANS_USERFACE = "key_fans_userface";

    // public static final String KEY_PKUID = "key_pkuid";
    public static final String KEY_PIDLIST = "key_pidlist";

    public static final String KEY_FID = "key_fid";
    public static final String KEY_TID = "key_tid";
    public static final String KEY_PID = "key_pid";
    public static final String KEY_NAME = "key_name";
    public static final String KEY_UID = "key_uid";
    public static final String KEY_USERFACE = "key_userface";

    public static final String KEY_VIDEO_TYPE = "key_video_type";
    public static final String KEY_VIDEO_URL = "key_video_url";
    public static final String KEY_VIDEO_NAME = "key_video_name";
    public static final String KEY_VIDEO_IMAGE_URL = "key_video_image_url";
    public static final String KEY_VIDEO_DESCRIPTION = "key_video_description";

    public static final String KEY_IMAGE_PATH = "key_image_path";
    /** 榜单中 试用 */
    public static final String KEY_POSITION = "key_position";

    // public static final String KEY_POST_TITLE = "key_post_title";
    // public static final String KEY_POST_TID = "key_post_tid";
    // public static final String KEY_POST_IMAGE_URL = "key_post_image_url";

    /** 接收到推送消息,状态有改变（仅作状态改变通知） */
    public static final String KEY_NOTICE_STATE_CHANGED = "key_notice_state_changed";

    public static final String KEY_LOGIN_TYPE = "key_login_type";
    /** 收到推送消息（收到消息通知） */
    public static final String ACTION_RECEIVED_NOTICE = "key_received_notice";
    /** 声音开关改变，通知改变 */
    public static final String ACTION_AUDIO_SETTING_CHANGED = "key_audio_setting_changed";

    public static final String ACTION_SHARE_SUCCESS = "action_share_success";

    public static final String ACTION_POST = "action_post";

    public static final String ACTION_VIDEO_END = "action_video_end";

    /** 订单信息 */
    public static final String ORDER_INFO = "order_info";

    /**
     * 0 首页<br/>
     * 1分类页面
     */
    public static final String KEY_FROM_PAGE = "key_from_page";
    public static final String KEY_TOP_BAR_TITLE = "key_top_bar_title";

    /** 接收到jpush的推送消息 */
    // public static final String KEY_RECEIVE_JPUSH_MESSAGE =
    // "key_receive_jpush_message";

    /** 订单的总价格。 */
    public static float ALLPRICE = 0;
    /** rec_id */
    public static String REC_ID = "";
    public static boolean ISMYGROUP = false;

    public static final int REQUESTCODE_LOGIN = 500;

    public static final int REQUESTCODE_POSTED = 1;

    public static enum LOGINMODE {
        NONE, NORMAL, QQ, SINA, WeiXin;
    }

    /**
     * 推送标记
     * 
     * @author chenghao
     */
    public static class NoticeLabel {
        /** 有新消息 */
        public static boolean sHasNewMessageNotice;
        /** 有新关注 */
        // public static boolean sHasNewAttention;
    }

    /** 加入或退出圈子的广播 */
    public static final String JOIN_OUT_GROUP = "join_out_group";
    public static final String GUIZE = "guize";
    // 返回商城首页
    public static final String KEY_SHOP_HOME = "key_shop_home";
    public static final String KEY_ACTID = "actid";
    /** 微刊标题 */
    // public static final String KEY_TITLE = "weikan";
    /** 标注是达人还是铁杆粉 */
    public static String DAYEN_FANS_TYPE = "dayen_fans";
    /** tieganfen */
    public static String DAYEN_TYPE = "dayen";
    public static String FANS_TYPE = "fans";

    public static String KEY_START_FROM_SELECT_GROUP = "key_start_from_select_group";
    public static String ACTION_WEIBA_COUNT_CHANGED = "action_weiba_count_changed";

    public static String KEY_GOODS_ID = "key_goods_id";
    public static String KEY_PRODUCT_DETAIL_TAB_ID = "key_product_detail_tab_id";

    /**
     * 规则
     */
    public static final String KEY_TITLE = "title";
    public static final String KEY_URL = "url";
    public static final String VALUE_URL =
            "http://bbs.chinapet.com/plugin.php?id=leepet_thread:weibarule&uid=1281019";
    /**
     * 商品信息
     */
    public static String KEY_PRODUCT_DETAIL_INFO = "key_product_detail_info";
    /**
     * 商品简介
     */
    public static String KEY_PRODUCT_INTRO_INFO = "key_product_intro_info";
    /**
     * 商品评论
     */
    public static String KEY_PRODUCT_COMMENTINFOS = "key_product_comment_infos";
    public static String KEY_PRODUCT_ID = "key_product_id";

    public static String KEY_LANDLORD_INFO = "landlord_info";
    public static String KEY_LAYER_INFO = "layer_info";
    public static String KEY_COMMENT_INFO = "comment_info";
    /** 选择图片模式 true：首页跳转 false：发帖页面跳转过来 */
    public static String KEY_SELECT_PICTURE_MODE = "select_picture_mode";
    public static String KEY_CAMERA_PICTURE_PATH = "camera_picture_path";
    /**
     * 是否是查看所有评论
     */
    public static String KEY_MODE_LOOK_COMMENT = "key_mode_look_comment";
    public static String KEY_IMAGE_URL = "key_image_url";

    public static double location_lat = 0;

    public static double location_lon = 0;

    public static String location_address = "";

    public static String location_city = "";



    public static final String AVTIVITY_CHAGNQI = "0";// 长期活动
    public static final String AVTIVITY_GOING = "1";// 进行中
    public static final String AVTIVITY_UNSTART = "2";// 未开始
    public static final String AVTIVITY_COMPLETE = "3";// 已完成
    public static final String KEY_TAG = "tag";
    public static final String KEY_SHAITUINFO = "key_shaitu_info";
    public static final String KEY_FROM_ACTIVITY = "key_from_activity";
    public static final String WEIXIN_APPID = "wx05c050d8b7b4b210";
    public static final String WEIXIN_APPSECRET = "c1716f0ee2cdce329fbca7af5758d288";

    /**
     * type = 1 活动 type = 2 比赛
     */
    public static final String TYPE_ACTIVITY = "1";
    /**
     * type = 1 活动 type = 2 比赛
     */
    public static final String TYPE_GAME = "2";

    /**
     * 刷新帖子信息
     */
    public static final String REFRESHPOSTINFO = "refreshPostInfo";

    /**
     * 成功的返回码
     */
    public static final String RESULT_OK = "0";

}
